﻿@{
    ViewBag.Title = "FeedBack";
    Layout = "~/Views/Shared/_UserLayoutPage2.cshtml";
    var db = new Project_2._2.Models.QuanLyThueXeEntities();
    var fb = (from p in db.Feedbacks where p.TrangThai == true select p).ToList();  
}

<div style="width:748px; min-height:200px; height:auto; border:2px solid #cfcfcf; border-radius:5px; margin-top:10px">
    <div style="height:54px; width:748px; background:url('../Images/UserDesign/bg_right.png') repeat-x; border-bottom:2px solid #cfcfcf;">
        <div style="width:105px; height:54px; float:left; margin-left:5px;">
            <img src="../Images/UserDesign/car.png" />
        </div>
        <div style="width:638px; height:54px; float:right">
            <span style="font-weight:bold; color:#ffffff; font-family:Tahoma; font-size:14px; line-height:38px">Ý KIẾN KHÁCH HÀNG THUÊ XE</span>
        </div>
    </div>

    <div style="min-height:100px; height:auto; width:748px">
        @foreach (var item in fb)
        {
            <table style="width:736px; margin-left:6px">
                <tr>
                    <td style="width: 100px">
                        <img src="../Images/UserDesign/img-feedback.png" /><br />
                    </td>
                    <td style="width:636px">
                        <p style="text-align:justify">@item.NoiDung</p>
                        <p style="text-align:right">
                            @item.HoTen<br />
                            Email: @item.Email
                        </p>
                    </td>
                </tr>
            </table><br />

            @*<table style="width: 736px; margin-left:6px">
                      <tr>
                          <td style="width: 120px">
                              <img src="../Images/UserDesign/img-feedback.png" /><br />
                          </td>
                          <td style="width: 616px">
                              <p>@item.HoTen<span> | </span>Ngày Gửi: @item.NgayGui.ToString("dd-MM-yyyy")</p><hr />
                              <p style="text-align:justify">@item.NoiDung</p>
                              <p style="text-align:right">Email: @item.Email</p>
                          </td>
                      </tr>
                </table><br />*@
        }
    </div>
</div> 
